package com.xidian.zhiancloud.service.equipFacility;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xidian.zhiancloud.dao.DefendStandardMapper;
import com.xidian.zhiancloud.dao.OhStandardMapper;
import com.xidian.zhiancloud.model.DefendStandard;
import com.xidian.zhiancloud.model.OhStandard;
import com.xidian.zhiancloud.qo.equipFacility.DefendStandardQO;
import com.xidian.zhiancloud.qo.equipFacility.OhStandardQO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @Description: 维护标准
* @Author: 任启亮
* @Date: 2020/11/11 
*/
@Service
public class DefendStandardService extends ServiceImpl<DefendStandardMapper, DefendStandard> implements IService<DefendStandard> {
    @Autowired
    private DefendStandardMapper defendStandardMapper;

    public IPage<DefendStandard> selectByQO(DefendStandardQO defendStandardQO) {
        Page<DefendStandard> page = new Page<>(defendStandardQO.getCurrent(), defendStandardQO.getSize());
        LambdaQueryWrapper<DefendStandard> lambdaQueryWrapper = Wrappers.<DefendStandard>lambdaQuery();
        Page<DefendStandard> tmpAns = defendStandardMapper.selectPage(page, lambdaQueryWrapper);
        return tmpAns;

    }
}
